package nix.struts.param;

import nix.struts.param.domain.User;

import com.opensymphony.xwork2.ActionSupport;

public class Demo2Action extends ActionSupport {
	// 使用对象属性驱动接收参数
	private User user;

	@Override
	public String execute() throws Exception {

		System.out.println(user);
		return SUCCESS;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
